线宽: int = 1  # 线宽
方块间隔: int = 1
线的颜色: tuple = (132, 132, 132)  # 线的颜色
方块大小: int = 20
每行数量: int = 16
每列数量: int = 30



游戏框宽: int = 每行数量 * ( 方块大小 + 线宽 + 线宽 + 方块间隔 ) + 方块间隔
游戏框_开始宽位置: int = 30
游戏框_结束宽位置: int = 游戏框_开始宽位置 + 游戏框宽
程序界面宽度: int = 800
程序界面高度: int = 600
程序界面大小: tuple = (程序界面宽度, 程序界面高度)



# 0,0,0,0
# 0,1,1,0
# 0,1,1,0
# 0,0,0,0

# 定义方块形状
type_1 = [ [ 0, 0, 0, 0 ], [ 0, 1, 1, 0 ],  [ 0, 1, 1, 0 ], [ 0, 0, 0, 0 ] ]
type_2 = [ [ 0, 0, 0, 0 ], [ 1, 1, 1, 1 ],  [ 0, 0, 0, 0 ], [ 0, 0, 0, 0 ] ]
type_3 = [ [ 0, 0, 0, 0 ], [ 0, 1, 0, 0 ],  [ 1, 1, 1, 0 ], [ 0, 0, 0, 0 ] ]
type_4 = [ [ 0, 0, 0, 0 ], [ 0, 0, 1, 0 ],  [ 1, 1, 1, 0 ], [ 0, 0, 0, 0 ] ]
type_5 = [ [ 0, 1, 0, 0 ], [ 0, 1, 1, 0 ],  [ 0, 0, 1, 0 ], [ 0, 0, 0, 0 ] ]
type_6 = [ [ 0, 0, 1, 0 ], [ 0, 1, 1, 0 ],  [ 0, 1, 0, 0 ], [ 0, 0, 0, 0 ] ]